<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">

	 arr = [1,56,23,6,43,87,3,5,55];

	 temp =arr[0];

	 for(var i in arr){
	 	if(arr[i]>temp){
	 		temp = arr[i];
	 	}
	 }

	 // document.write(temp);


	 arr = [1,56,23,6,43,87,3,5,55];


	 for (var i in arr) {
	 	if(arr[i]%2==1){
	 		arr[i] = arr[i]*2;
	 	}
	 };

	// document.write(arr);
	// 
	// 
	arr = [34,34,34,34,56,4,32,47,3,45,34,3,3,3,3,3];


	for (var i = 0; i < arr.length; i++) {
		for (var j = i+1; j < arr.length; j++) {
			if(arr[i]==arr[j]){
				arr.splice(j,1);
				j--;
			}
		
		};
	};

	// document.write(arr);


	arr = [5,209,23,85,10,4];

	for (var j = 0;j < arr.length; j++) {
		for (var i = 0; i < arr.length; i++) {
			if(arr[i]>arr[i+1]){
				temp = arr[i];
				arr[i] = arr[i+1];
				arr[i+1] = temp;
			}
		};
	};

	document.write(arr);
















	</script>
</head>
<body>
	
</body>
</html>